# $Id: PKGBUILD 154130 2012-03-23 17:11:54Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xtrans
pkgver=1.2.7
pkgrel=1
pkgdesc="X transport library"
arch=('any')
license=('custom')
url="http://xorg.freedesktop.org/"
options=(!emptydirs)
source=(${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('b6ed421edf577816f6e641e1846dc0bff337676c')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  install -m755 -d "${pkgdir}/usr/lib"
  mv "${pkgdir}/usr/share/pkgconfig" "${pkgdir}/usr/lib/pkgconfig"
}
